package com.example.minademo.dao;

import com.example.minademo.entity.ScreenShot;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ScreenShotDao extends JpaRepository<ScreenShot,Integer> {

    List<ScreenShot> findAllByUserIdAndAndControlledUserId(Integer userId, Integer controlledUserId);

    ScreenShot save(ScreenShot shot);

}
